package com.singularity.common.domain.dto.user;


import com.singularity.common.domain.dto.permission.PermissionInfoDTO;
import com.singularity.common.domain.dto.role.RoleInfoDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 天
 *
 * @description: 用户信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfoDTO {

    private Long id;

    private String account;

    private String email;

    private String name;

    private String phone;

    private Integer sex;

    private Integer departmentId;

    private String photo;

    private List<RoleInfoDTO> roles = new ArrayList<>();

    private List<PermissionInfoDTO> permissions = new ArrayList<>();
}
